package com.heima.common.constants;

import com.alibaba.fastjson.JSON;

public class ArticleConstants {
    public static final Short LOADTYPE_LOAD_MORE = 1;
    public static final Short LOADTYPE_LOAD_NEW = 2;

    // 默认频道(推荐文章)
    public static final String DEFAULT_TAG = "__all__";

//  ArticleFreemarkerServiceImpl中发送消息，通知搜索微服务端，创建索引，添加数据到索引库(需要在nacos中配置生产者的内容)
//  kafkaTemplate.send(ArticleConstants.ARTICLE_SYNC_TOPIC, JSON.toJSONString(searchArticleVo));
    public static final String ARTICLE_ES_SYNC_TOPIC = "article.es.sync.topic";

    public static final String ARTICLE_INDEX_NAME = "app_info_article";

    // 点赞的分值权重是3
    public static final Integer HOT_ARTICLE_LIKE_WEIGHT = 3;
    // 评论的分值权重是5
    public static final Integer HOT_ARTICLE_COMMENT_WEIGHT = 5;
    // 收藏的分值权重是8
    public static final Integer HOT_ARTICLE_COLLECTION_WEIGHT = 8;
    // 首页30条分值较高的文章
    public static final String HOT_ARTICLE_FIRST_PAGE = "hot_article_first_page_";

}